package com.lg.thread.day02.sleepTest;

/**
 * @author LG93
 * @create 2017-08-11 16:58
 **/
public class Main {

    public static void main(String[] args) {
        Test1();
        System.out.println("--------------------------------");
        Test2();
    }

    public static void Test1() {
        MyThread1 myThread1 = new MyThread1();
        System.out.println("begin =" +System.currentTimeMillis());
        myThread1.run();
        System.out.println("end   =" +System.currentTimeMillis());
    }

    public static void Test2() {
        MyThread1 myThread1 = new MyThread1();
        System.out.println("begin =" +System.currentTimeMillis());
        myThread1.start();
        System.out.println("end   =" +System.currentTimeMillis());
    }
}
